package bugTest;


import com.alibaba.fastjson2.JSON;

import java.util.ArrayList;
import java.util.List;

public class BugTest2 {
    public static void main(String[] args) {
        String json = "[2022,2023,2024";
        List<Integer> list = new ArrayList<>(3);
        try {
            list = JSON.parseArray(json, Integer.class);
        } catch (Exception e) {
            System.out.println("异常现象" + json + e);
            e.printStackTrace();
        }
        System.out.println(list);
    }
}
